package samples.zipcodes;

import java.io.Serializable;

public class ZipCodeDetails implements Serializable {

	private static final long serialVersionUID = 1L;

	private Coordinates coordinates;

	private String city;
	private String state;
	private String county;
	private String addressType;

	public ZipCodeDetails() {
		this.coordinates = new Coordinates();
	}

	public void setCoordinates(Coordinates coordinates) {
		this.coordinates = coordinates;
	}

	public Coordinates getCoordinates() {
		return coordinates;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCity() {
		return city;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getState() {
		return state;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	public String getCounty() {
		return county;
	}

	public void setAddressType(String addressType) {
		this.addressType = addressType;
	}

	public String getAddressType() {
		return addressType;
	}

	@Override
	public String toString() {
		return String.format("%s (%s), %s - %s (Address Type = %s)", this.city,
				this.county, this.state, this.coordinates, this.addressType);
	}
}
